/*对store中已有的数据加工处理形成新的数据，store中数据变化，getter的数据也会跟着变化
* 使用getter：this.$store.getter.名称*/

const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  roles: state => state.user.roles,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,
  userName: state => state.user.userName,
  userCode: state => state.user.userCode,
  orgName: state => state.user.orgName,
  orgCode: state => state.user.orgCode,
  menuList: state => state.menus.menuList
}
export default getters
